<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
    <head>
        <link rel="stylesheet" type="text/css" href="/stylesheets/editor/editor.css" />
        <link rel="stylesheet" type="text/css" href="/stylesheets/editor/common.css" />
        <script src="/javascripts/editor/common.js" type="text/javascript">
        </script>
        <script src="/javascripts/editor/post_attach.js" type="text/javascript">
        </script>
        <script src="/javascripts/editor/post.js" type="text/javascript">
        </script>
        <script src="/javascripts/editor/editor.js" type="text/javascript">
        </script>
        <script src="/javascripts/editor/bbcode.js" type="text/javascript">
        </script>
        <script src="/javascripts/editor/post_editor.js" type="text/javascript">
        </script>
    </head>
    <body>
        <form method="post" id="postform" action="" enctype="multipart/form-data">
            <div class="mainbox formbox">
                <script type="text/javascript">
                    lang['post_discuzcode_code'] = '请输入要插入的代码';
                    lang['post_discuzcode_quote'] = '请输入要插入的引用';
                    lang['post_discuzcode_free'] = '请输入要插入的免费信息';
                    lang['post_discuzcode_hide'] = '请输入要插入的隐藏内容';
                </script>
                <div id="posteditor" class="editor">
                    <div id="posteditor_controls">
                        <div class="editorrow">
                            <a id="posteditor_cmd_bold" title="粗体">B</a>
                            <a id="posteditor_cmd_italic" title="斜体">I</a>
                            <a id="posteditor_cmd_underline" title="下划线">U</a>
                            <em></em>
                            <a id="posteditor_popup_fontsize" title="大小"><span style="width: 30px; display: block;" id="posteditor_size_out">大小</span></a>
                            <a id="posteditor_popup_forecolor" title="颜色"><span style="width: 30px; display: block;"><img alt="color" src="/images/editor/bb_color.gif"/>
                                    <br/>
                                    <img width="21" height="4" style="background-color: Black;" alt="" id="posteditor_color_bar" src="/images/editor/bb_clear.gif"/>
                                </span>
                            </a><em></em>
                            <a id="posteditor_cmd_createlink" title="插入链接">Url</a>
                            <a id="posteditor_cmd_email" title="插入邮箱链接">Email</a>
                            <a id="posteditor_cmd_insertimage" title="插入图片">Image</a>
                            <em></em>
                            <a id="posteditor_cmd_quote" title="插入引用">Quote</a>
                            <a id="posteditor_cmd_code" title="插入代码">Code</a>
                            <em></em>
                            <a id="posteditor_cmd_undo" title="撤销">Undo</a>
                            <a id="posteditor_cmd_redo" title="重做">Redo</a>
                        </div>
                        <div id="posteditor_switcher" class="editor_switcher_bar">
                            <button type="button" id="bbcodemode">
                                UBB代码
                            </button>
                        </div>
                    </div>
                </div>
                <div class="editortoolbar">
                    <div class="popupmenu_popup fontname_menu" id="posteditor_popup_fontname_menu" style="display: none">
                        <ul unselectable="on">
                            <li onclick="discuzcode('fontname', '仿宋_GB2312');hideMenu()" style="font-family: 仿宋_GB2312" unselectable="on">
                                仿宋_GB2312
                            </li>
                            <li onclick="discuzcode('fontname', '黑体');hideMenu()" style="font-family: 黑体" unselectable="on">
                                黑体
                            </li>
                            <li onclick="discuzcode('fontname', '楷体_GB2312');hideMenu()" style="font-family: 楷体_GB2312" unselectable="on">
                                楷体_GB2312
                            </li>
                            <li onclick="discuzcode('fontname', '宋体');hideMenu()" style="font-family: 宋体" unselectable="on">
                                宋体
                            </li>
                            <li onclick="discuzcode('fontname', '新宋体');hideMenu()" style="font-family: 新宋体" unselectable="on">
                                新宋体
                            </li>
                            <li onclick="discuzcode('fontname', '微软雅黑');hideMenu()" style="font-family: 微软雅黑" unselectable="on">
                                微软雅黑
                            </li>
                            <li onclick="discuzcode('fontname', 'Trebuchet MS');hideMenu()" style="font-family: Trebuchet MS" unselectable="on">
                                Trebuchet MS
                            </li>
                            <li onclick="discuzcode('fontname', 'Tahoma');hideMenu()" style="font-family: Tahoma" unselectable="on">
                                Tahoma
                            </li>
                            <li onclick="discuzcode('fontname', 'Arial');hideMenu()" style="font-family: Arial" unselectable="on">
                                Arial
                            </li>
                            <li onclick="discuzcode('fontname', 'Impact');hideMenu()" style="font-family: Impact" unselectable="on">
                                Impact
                            </li>
                            <li onclick="discuzcode('fontname', 'Verdana');hideMenu()" style="font-family: Verdana" unselectable="on">
                                Verdana
                            </li>
                            <li onclick="discuzcode('fontname', 'Times New Roman');hideMenu()" style="font-family: Times New Roman" unselectable="on">
                                Times New Roman
                            </li>
                        </ul>
                    </div>
                    <div class="popupmenu_popup fontsize_menu" id="posteditor_popup_fontsize_menu" style="display: none">
                        <ul unselectable="on">
                            <li onclick="discuzcode('fontsize', 1);hideMenu()" unselectable="on">
                                <font size="1" unselectable="on">
                                    1
                                </font>
                            </li>
                            <li onclick="discuzcode('fontsize', 10);hideMenu()" unselectable="on">
                                <font size="2" unselectable="on">
                                    2
                                </font>
                            </li>
                            <li onclick="discuzcode('fontsize', 12);hideMenu()" unselectable="on">
                                <font size="3" unselectable="on">
                                    3
                                </font>
                            </li>
                            <li onclick="discuzcode('fontsize', 14);hideMenu()" unselectable="on">
                                <font size="4" unselectable="on">
                                    4
                                </font>
                            </li>
                            <li onclick="discuzcode('fontsize', 18);hideMenu()" unselectable="on">
                                <font size="5" unselectable="on">
                                    5
                                </font>
                            </li>
                            <li onclick="discuzcode('fontsize', 24);hideMenu()" unselectable="on">
                                <font size="6" unselectable="on">
                                    6
                                </font>
                            </li>
                            <li onclick="discuzcode('fontsize', 36);hideMenu()" unselectable="on">
                                <font size="7" unselectable="on">
                                    7
                                </font>
                            </li>
                        </ul>
                    </div>
                    <div class="popupmenu_popup" id="posteditor_popup_media_menu" style="width: 240px;display: none">
                        <input type="hidden" id="posteditor_mediatype" value="ra"><input type="hidden" id="posteditor_mediaautostart" value="0">
                        <table cellpadding="4" cellspacing="0" border="0" unselectable="on">
                            <tr class="popupmenu_option">
                                <td nowrap>
 请输入多媒体文件的地址:
                                    <br/>
                                    <input id="posteditor_mediaurl" size="40" value="" onkeyup="setmediatype('posteditor')"/>
                                </td>
                            </tr>
                            <tr class="popupmenu_option">
                                <td nowrap>
                                    <label style="float: left; width: 32%">
                                        <input type="radio" name="posteditor_mediatyperadio" id="posteditor_mediatyperadio_ra" onclick="$('posteditor_mediatype').value = 'ra'" checked="checked">RA
                                    </label>
                                    <label style="float: left; width: 32%">
                                        <input type="radio" name="posteditor_mediatyperadio" id="posteditor_mediatyperadio_wma" onclick="$('posteditor_mediatype').value = 'wma'">WMA
                                    </label>
                                    <label style="float: left; width: 32%">
                                        <input type="radio" name="posteditor_mediatyperadio" id="posteditor_mediatyperadio_mp3" onclick="$('posteditor_mediatype').value = 'mp3'">MP3
                                    </label>
                                    <label style="float: left; width: 32%">
                                        <input type="radio" name="posteditor_mediatyperadio" id="posteditor_mediatyperadio_rm" onclick="$('posteditor_mediatype').value = 'rm'">RM/RMVB
                                    </label>
                                    <label style="float: left; width: 32%">
                                        <input type="radio" name="posteditor_mediatyperadio" id="posteditor_mediatyperadio_wmv" onclick="$('posteditor_mediatype').value = 'wmv'">WMV
                                    </label>
                                    <label style="float: left; width: 32%">
                                        <input type="radio" name="posteditor_mediatyperadio" id="posteditor_mediatyperadio_mov" onclick="$('posteditor_mediatype').value = 'mov'">MOV
                                    </label>
                                </td>
                            </tr>
                            <tr class="popupmenu_option">
                                <td nowrap>
                                    <label style="float: left; width: 32%">
                                        宽: <input id="posteditor_mediawidth" size="5" value="400" />
                                    </label>
                                    <label style="float: left; width: 32%">
                                        高: <input id="posteditor_mediaheight" size="5" value="300"/>
                                    </label>
                                    <label style="float: left; width: 32%">
                                        <input type="checkbox" onclick="$('posteditor_mediaautostart').value =this.checked ? 1 : 0">自动播放
                                    </label>
                                </td>
                            </tr>
                            <tr class="popupmenu_option">
                                <td align="center" colspan="2">
                                    <input type="button" size="8" value="提交" onclick="setmediacode('posteditor')"><input type="button" onclick="hideMenu()" value="取消" />
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div class="popupmenu_popup" id="posteditor_popup_forecolor_menu" style="display: none">
                        <table cellpadding="0" cellspacing="0" border="0" unselectable="on" style="width: auto;">
                            <tr>
                                <td class="editor_colornormal" onclick="discuzcode('forecolor', 'Black');hideMenu()" unselectable="on" onmouseover="colorContext(this, 'mouseover')" onmouseout="colorContext(this, 'mouseout')">
                                    <div style="background-color: Black" unselectable="on">
                                    </div>
                                </td>
                                <td class="editor_colornormal" onclick="discuzcode('forecolor', 'Sienna');hideMenu()" unselectable="on" onmouseover="colorContext(this, 'mouseover')" onmouseout="colorContext(this, 'mouseout')">
                                    <div style="background-color: Sienna" unselectable="on">
                                    </div>
                                </td>
                                <td class="editor_colornormal" onclick="discuzcode('forecolor', 'DarkOliveGreen');hideMenu()" unselectable="on" onmouseover="colorContext(this, 'mouseover')" onmouseout="colorContext(this, 'mouseout')">
                                    <div style="background-color: DarkOliveGreen" unselectable="on">
                                    </div>
                                </td>
                                <td class="editor_colornormal" onclick="discuzcode('forecolor', 'DarkGreen');hideMenu()" unselectable="on" onmouseover="colorContext(this, 'mouseover')" onmouseout="colorContext(this, 'mouseout')">
                                    <div style="background-color: DarkGreen" unselectable="on">
                                    </div>
                                </td>
                                <td class="editor_colornormal" onclick="discuzcode('forecolor', 'DarkSlateBlue');hideMenu()" unselectable="on" onmouseover="colorContext(this, 'mouseover')" onmouseout="colorContext(this, 'mouseout')">
                                    <div style="background-color: DarkSlateBlue" unselectable="on">
                                    </div>
                                </td>
                                <td class="editor_colornormal" onclick="discuzcode('forecolor', 'Navy');hideMenu()" unselectable="on" onmouseover="colorContext(this, 'mouseover')" onmouseout="colorContext(this, 'mouseout')">
                                    <div style="background-color: Navy" unselectable="on">
                                    </div>
                                </td>
                                <td class="editor_colornormal" onclick="discuzcode('forecolor', 'Indigo');hideMenu()" unselectable="on" onmouseover="colorContext(this, 'mouseover')" onmouseout="colorContext(this, 'mouseout')">
                                    <div style="background-color: Indigo" unselectable="on">
                                    </div>
                                </td>
                                <td class="editor_colornormal" onclick="discuzcode('forecolor', 'DarkSlateGray');hideMenu()" unselectable="on" onmouseover="colorContext(this, 'mouseover')" onmouseout="colorContext(this, 'mouseout')">
                                    <div style="background-color: DarkSlateGray" unselectable="on">
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="editor_colornormal" onclick="discuzcode('forecolor', 'DarkRed');hideMenu()" unselectable="on" onmouseover="colorContext(this, 'mouseover')" onmouseout="colorContext(this, 'mouseout')">
                                    <div style="background-color: DarkRed" unselectable="on">
                                    </div>
                                </td>
                                <td class="editor_colornormal" onclick="discuzcode('forecolor', 'DarkOrange');hideMenu()" unselectable="on" onmouseover="colorContext(this, 'mouseover')" onmouseout="colorContext(this, 'mouseout')">
                                    <div style="background-color: DarkOrange" unselectable="on">
                                    </div>
                                </td>
                                <td class="editor_colornormal" onclick="discuzcode('forecolor', 'Olive');hideMenu()" unselectable="on" onmouseover="colorContext(this, 'mouseover')" onmouseout="colorContext(this, 'mouseout')">
                                    <div style="background-color: Olive" unselectable="on">
                                    </div>
                                </td>
                                <td class="editor_colornormal" onclick="discuzcode('forecolor', 'Green');hideMenu()" unselectable="on" onmouseover="colorContext(this, 'mouseover')" onmouseout="colorContext(this, 'mouseout')">
                                    <div style="background-color: Green" unselectable="on">
                                    </div>
                                </td>
                                <td class="editor_colornormal" onclick="discuzcode('forecolor', 'Teal');hideMenu()" unselectable="on" onmouseover="colorContext(this, 'mouseover')" onmouseout="colorContext(this, 'mouseout')">
                                    <div style="background-color: Teal" unselectable="on">
                                    </div>
                                </td>
                                <td class="editor_colornormal" onclick="discuzcode('forecolor', 'Blue');hideMenu()" unselectable="on" onmouseover="colorContext(this, 'mouseover')" onmouseout="colorContext(this, 'mouseout')">
                                    <div style="background-color: Blue" unselectable="on">
                                    </div>
                                </td>
                                <td class="editor_colornormal" onclick="discuzcode('forecolor', 'SlateGray');hideMenu()" unselectable="on" onmouseover="colorContext(this, 'mouseover')" onmouseout="colorContext(this, 'mouseout')">
                                    <div style="background-color: SlateGray" unselectable="on">
                                    </div>
                                </td>
                                <td class="editor_colornormal" onclick="discuzcode('forecolor', 'DimGray');hideMenu()" unselectable="on" onmouseover="colorContext(this, 'mouseover')" onmouseout="colorContext(this, 'mouseout')">
                                    <div style="background-color: DimGray" unselectable="on">
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="editor_colornormal" onclick="discuzcode('forecolor', 'Red');hideMenu()" unselectable="on" onmouseover="colorContext(this, 'mouseover')" onmouseout="colorContext(this, 'mouseout')">
                                    <div style="background-color: Red" unselectable="on">
                                    </div>
                                </td>
                                <td class="editor_colornormal" onclick="discuzcode('forecolor', 'SandyBrown');hideMenu()" unselectable="on" onmouseover="colorContext(this, 'mouseover')" onmouseout="colorContext(this, 'mouseout')">
                                    <div style="background-color: SandyBrown" unselectable="on">
                                    </div>
                                </td>
                                <td class="editor_colornormal" onclick="discuzcode('forecolor', 'YellowGreen');hideMenu()" unselectable="on" onmouseover="colorContext(this, 'mouseover')" onmouseout="colorContext(this, 'mouseout')">
                                    <div style="background-color: YellowGreen" unselectable="on">
                                    </div>
                                </td>
                                <td class="editor_colornormal" onclick="discuzcode('forecolor', 'SeaGreen');hideMenu()" unselectable="on" onmouseover="colorContext(this, 'mouseover')" onmouseout="colorContext(this, 'mouseout')">
                                    <div style="background-color: SeaGreen" unselectable="on">
                                    </div>
                                </td>
                                <td class="editor_colornormal" onclick="discuzcode('forecolor', 'MediumTurquoise');hideMenu()" unselectable="on" onmouseover="colorContext(this, 'mouseover')" onmouseout="colorContext(this, 'mouseout')">
                                    <div style="background-color: MediumTurquoise" unselectable="on">
                                    </div>
                                </td>
                                <td class="editor_colornormal" onclick="discuzcode('forecolor', 'RoyalBlue');hideMenu()" unselectable="on" onmouseover="colorContext(this, 'mouseover')" onmouseout="colorContext(this, 'mouseout')">
                                    <div style="background-color: RoyalBlue" unselectable="on">
                                    </div>
                                </td>
                                <td class="editor_colornormal" onclick="discuzcode('forecolor', 'Purple');hideMenu()" unselectable="on" onmouseover="colorContext(this, 'mouseover')" onmouseout="colorContext(this, 'mouseout')">
                                    <div style="background-color: Purple" unselectable="on">
                                    </div>
                                </td>
                                <td class="editor_colornormal" onclick="discuzcode('forecolor', 'Gray');hideMenu()" unselectable="on" onmouseover="colorContext(this, 'mouseover')" onmouseout="colorContext(this, 'mouseout')">
                                    <div style="background-color: Gray" unselectable="on">
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="editor_colornormal" onclick="discuzcode('forecolor', 'Magenta');hideMenu()" unselectable="on" onmouseover="colorContext(this, 'mouseover')" onmouseout="colorContext(this, 'mouseout')">
                                    <div style="background-color: Magenta" unselectable="on">
                                    </div>
                                </td>
                                <td class="editor_colornormal" onclick="discuzcode('forecolor', 'Orange');hideMenu()" unselectable="on" onmouseover="colorContext(this, 'mouseover')" onmouseout="colorContext(this, 'mouseout')">
                                    <div style="background-color: Orange" unselectable="on">
                                    </div>
                                </td>
                                <td class="editor_colornormal" onclick="discuzcode('forecolor', 'Yellow');hideMenu()" unselectable="on" onmouseover="colorContext(this, 'mouseover')" onmouseout="colorContext(this, 'mouseout')">
                                    <div style="background-color: Yellow" unselectable="on">
                                    </div>
                                </td>
                                <td class="editor_colornormal" onclick="discuzcode('forecolor', 'Lime');hideMenu()" unselectable="on" onmouseover="colorContext(this, 'mouseover')" onmouseout="colorContext(this, 'mouseout')">
                                    <div style="background-color: Lime" unselectable="on">
                                    </div>
                                </td>
                                <td class="editor_colornormal" onclick="discuzcode('forecolor', 'Cyan');hideMenu()" unselectable="on" onmouseover="colorContext(this, 'mouseover')" onmouseout="colorContext(this, 'mouseout')">
                                    <div style="background-color: Cyan" unselectable="on">
                                    </div>
                                </td>
                                <td class="editor_colornormal" onclick="discuzcode('forecolor', 'DeepSkyBlue');hideMenu()" unselectable="on" onmouseover="colorContext(this, 'mouseover')" onmouseout="colorContext(this, 'mouseout')">
                                    <div style="background-color: DeepSkyBlue" unselectable="on">
                                    </div>
                                </td>
                                <td class="editor_colornormal" onclick="discuzcode('forecolor', 'DarkOrchid');hideMenu()" unselectable="on" onmouseover="colorContext(this, 'mouseover')" onmouseout="colorContext(this, 'mouseout')">
                                    <div style="background-color: DarkOrchid" unselectable="on">
                                    </div>
                                </td>
                                <td class="editor_colornormal" onclick="discuzcode('forecolor', 'Silver');hideMenu()" unselectable="on" onmouseover="colorContext(this, 'mouseover')" onmouseout="colorContext(this, 'mouseout')">
                                    <div style="background-color: Silver" unselectable="on">
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="editor_colornormal" onclick="discuzcode('forecolor', 'Pink');hideMenu()" unselectable="on" onmouseover="colorContext(this, 'mouseover')" onmouseout="colorContext(this, 'mouseout')">
                                    <div style="background-color: Pink" unselectable="on">
                                    </div>
                                </td>
                                <td class="editor_colornormal" onclick="discuzcode('forecolor', 'Wheat');hideMenu()" unselectable="on" onmouseover="colorContext(this, 'mouseover')" onmouseout="colorContext(this, 'mouseout')">
                                    <div style="background-color: Wheat" unselectable="on">
                                    </div>
                                </td>
                                <td class="editor_colornormal" onclick="discuzcode('forecolor', 'LemonChiffon');hideMenu()" unselectable="on" onmouseover="colorContext(this, 'mouseover')" onmouseout="colorContext(this, 'mouseout')">
                                    <div style="background-color: LemonChiffon" unselectable="on">
                                    </div>
                                </td>
                                <td class="editor_colornormal" onclick="discuzcode('forecolor', 'PaleGreen');hideMenu()" unselectable="on" onmouseover="colorContext(this, 'mouseover')" onmouseout="colorContext(this, 'mouseout')">
                                    <div style="background-color: PaleGreen" unselectable="on">
                                    </div>
                                </td>
                                <td class="editor_colornormal" onclick="discuzcode('forecolor', 'PaleTurquoise');hideMenu()" unselectable="on" onmouseover="colorContext(this, 'mouseover')" onmouseout="colorContext(this, 'mouseout')">
                                    <div style="background-color: PaleTurquoise" unselectable="on">
                                    </div>
                                </td>
                                <td class="editor_colornormal" onclick="discuzcode('forecolor', 'LightBlue');hideMenu()" unselectable="on" onmouseover="colorContext(this, 'mouseover')" onmouseout="colorContext(this, 'mouseout')">
                                    <div style="background-color: LightBlue" unselectable="on">
                                    </div>
                                </td>
                                <td class="editor_colornormal" onclick="discuzcode('forecolor', 'Plum');hideMenu()" unselectable="on" onmouseover="colorContext(this, 'mouseover')" onmouseout="colorContext(this, 'mouseout')">
                                    <div style="background-color: Plum" unselectable="on">
                                    </div>
                                </td>
                                <td class="editor_colornormal" onclick="discuzcode('forecolor', 'White');hideMenu()" unselectable="on" onmouseover="colorContext(this, 'mouseover')" onmouseout="colorContext(this, 'mouseout')">
                                    <div style="background-color: White" unselectable="on">
                                    </div>
                                </td>
                            </tr>
                            <tr>
                            </tr>
                        </table>
                    </div>
                </div>
                <table class="editor_text" summary="Message Textarea" cellpadding="0" cellspacing="0" style="table-layout: fixed;">
                    <tr>
                        <td>
                            <textarea class="autosave" name="message" rows="10" cols="60" style="width:99%; height:250px" tabindex="100" id="posteditor_textarea"></textarea>
                        </td>
                    </tr>
                </table>
                <div id="posteditor_bottom">
                    <table summary="Enitor Buttons" cellpadding="0" cellspacing="0" class="editor_button" style="border-top: none;">
                        <tr>
                            <td style="border-top: none;">
                                <div class="editor_textexpand" style="float: left">
                                    <img src="/images/editor/bb_contract.gif" width="11" height="21" title="收缩编辑框" alt="收缩编辑框" id="posteditor_contract" /><img src="/images/editor/bb_expand.gif" width="12" height="21" title="扩展编辑框" alt="扩展编辑框" id="posteditor_expand" />
                                </div>
                            </td>
                            <td align="right" style="border-top: none;">
                                <button type="button" tabindex="103" id="clearcontent">
                                    清空内容
                                </button>
                            </td>
                        </tr>
                    </table>
                    <input type="hidden" name="wysiwyg" id="posteditor_mode" value="0" />
                </div>
                </form>
                <script type="text/javascript">
                    var isubb;
                    if (location.search.indexOf("ubb=1") == 1) 
                        isubb = 1;
                    else 
                        isubb = 0;
                    var bbinsert = 1;
                    if (!(is_ie >= 5 || is_moz >= 2)) {
                        $('restoredata').style.display = 'none';
                    }
					var _textarea_id = location.search.substring(location.search.indexOf("id=")+3);
					var _data = parent.document.getElementById(_textarea_id).value;
					var _textarea = document.getElementById("posteditor_textarea");
					_textarea.innerHTML = _data;
                    var editorid = 'posteditor';
                    var textobj = $(editorid + '_textarea');
                    var wysiwyg = (is_ie || is_moz || (is_opera >= 9)) && parseInt(isubb) && bbinsert == 1 ? 1 : 0;
                    var allowswitcheditor = parseInt('1');
                    var allowhtml = parseInt('0');
                    var forumallowhtml = parseInt('0');
                    var allowsmilies = parseInt('1');
                    var allowbbcode = parseInt('1');
                    var allowimgcode = parseInt('1');
                    var special = parseInt('0');
                    var BORDERCOLOR = "#9DB3C5";
                    var ALTBG2 = "#E8F3FD";
                    var charset = 'gbk';
                    var smilies = new Array();
                    smilies[1] = {
                        'code': ':)',
                        'url': 'default/smile.gif'
                    };
                    smilies[12] = {
                        'code': ':lol',
                        'url': 'default/lol.gif'
                    };
                    smilies[13] = {
                        'code': ':hug:',
                        'url': 'default/hug.gif'
                    };
                    smilies[14] = {
                        'code': ':victory:',
                        'url': 'default/victory.gif'
                    };
                    smilies[15] = {
                        'code': ':time:',
                        'url': 'default/time.gif'
                    };
                    smilies[16] = {
                        'code': ':kiss:',
                        'url': 'default/kiss.gif'
                    };
                    smilies[17] = {
                        'code': ':handshake',
                        'url': 'default/handshake.gif'
                    };
                    smilies[18] = {
                        'code': ':call:',
                        'url': 'default/call.gif'
                    };
                    smilies[28] = {
                        'code': ':loveliness:',
                        'url': 'default/loveliness.gif'
                    };
                    smilies[11] = {
                        'code': ':Q',
                        'url': 'default/mad.gif'
                    };
                    smilies[10] = {
                        'code': ':L',
                        'url': 'default/sweat.gif'
                    };
                    smilies[2] = {
                        'code': ':(',
                        'url': 'default/sad.gif'
                    };
                    smilies[3] = {
                        'code': ':D',
                        'url': 'default/biggrin.gif'
                    };
                    smilies[4] = {
                        'code': ':\'(',
                        'url': 'default/cry.gif'
                    };
                    smilies[5] = {
                        'code': ':@',
                        'url': 'default/huffy.gif'
                    };
                    smilies[6] = {
                        'code': ':o',
                        'url': 'default/shocked.gif'
                    };
                    smilies[7] = {
                        'code': ':P',
                        'url': 'default/tongue.gif'
                    };
                    smilies[8] = {
                        'code': ':$',
                        'url': 'default/shy.gif'
                    };
                    smilies[9] = {
                        'code': ';P',
                        'url': 'default/titter.gif'
                    };
                    smilies[29] = {
                        'code': ':funk:',
                        'url': 'default/funk.gif'
                    };
                    lang['post_autosave_none'] = "没有可以恢复的数据！";
                    lang['post_autosave_confirm'] = "此操作将覆盖当前帖子内容，确定要恢复数据吗？";
                    lang['post_video_uploading'] = "您还没有上传视频，或者视频还在上传中，请稍侯重试。";
                    lang['post_video_vsubject_required'] = "没有添加视频主题。";
                    lang['post_video_vtag_required'] = "没有填写视频标签";
                    lang['post_video_vclass_required'] = "请您选择视频所属分类。";
                </script>
                <script type="text/javascript">
                    var thumbwidth = parseInt(400);
                    var thumbheight = parseInt(300);
                    var extensions = '';
                    lang['post_attachment_ext_notallowed'] = '对不起，不支持上传此类扩展名的附件。';
                    lang['post_attachment_img_invalid'] = '无效的图片文件。';
                    lang['post_attachment_deletelink'] = '删除';
                    lang['post_attachment_insert'] = '点击这里将本附件插入帖子内容中当前光标的位置';
                    lang['post_attachment_insertlink'] = '插入';
                </script>
                <script type="text/javascript">
                    var fontoptions = new Array("仿宋_GB2312", "黑体", "楷体_GB2312", "宋体", "新宋体", "微软雅黑", "Trebuchet MS", "Tahoma", "Arial", "Impact", "Verdana", "Times New Roman");
                    var custombbcodes = new Array();
                    custombbcodes["qq"] = {
                        'prompt': '请输入显示在线状态 QQ 号码:'
                    };
                    lang['enter_list_item'] = "输入一个列表项目.\r\n留空或者点击取消完成此列表.";
                    lang['enter_link_url'] = "请输入链接的地址:";
                    lang['enter_image_url'] = "请输入图片链接地址:";
                    lang['enter_email_link'] = "请输入此链接的邮箱地址:";
                    lang['fontname'] = "字体";
                    lang['fontsize'] = "大小";
                    lang['post_advanceeditor'] = "全部功能";
                    lang['post_simpleeditor'] = "简单功能";
                    lang['submit'] = "提交";
                    lang['cancel'] = "取消";
                </script>
                <script type="text/javascript">
                    newEditor(wysiwyg);
                </script>
                <script type="text/javascript">
                    $(editorid + '_contract').onclick = function(){
                        resizeEditor(-100)
                    };
                    $(editorid + '_expand').onclick = function(){
                        resizeEditor(100)
                    };
                    //$('previewbutton').onclick = function() {previewpost()};
                    $('clearcontent').onclick = function(){
                        clearcontent()
                    };
                    //$('postform').onsubmit = function() {return validate(this);};
                    //$('subject').focus();
                    /*天枫修改增加调用设置*/
                    function $(objID){
                        return document.getElementById(objID)
                    };
                    function $$(node){
                        return document.getElementsByTagName(node)
                    };
                    function addEvent(obj, type, fn){
                        if (obj.attachEvent) {
                            obj['e' + type + fn] = fn;
                            obj[type + fn] = function(){
                                obj['e' + type + fn](window.event);
                            }
                            obj.attachEvent('on' + type, obj[type + fn]);
                        }
                        else {
                            obj.addEventListener(type, fn, false);
                        }
                    }
                    
                    var _url = location.href;
                    var _fromid = _url.lastIndexOf("id=");
                    if (_fromid == -1) 
                        alert("请传入调用参数ID，即隐藏的内容表单项ID！");
                    else 
                        _fromid = _fromid + 3
                </script>
            </body>
            </html>
